package com.t174.car.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class CarSales {

  private int id;
  private int guests;
  private int car;

  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern="yyyy-MM-dd")
  private Date date;
  private BigDecimal moeny;
  private int staff;
  private String note;
  private int count;
  private UserInfo userInfo;
  private Guests guests1;
  private CarComponents carComponents;

  public CarComponents getCarComponents() {
    return carComponents;
  }

  public void setCarComponents(CarComponents carComponents) {
    this.carComponents = carComponents;
  }

  public UserInfo getUserInfo() {
    return userInfo;
  }

  public void setUserInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
  }

  public Guests getGuests1() {
    return guests1;
  }

  public void setGuests1(Guests guests1) {
    this.guests1 = guests1;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }


  public int getGuests() {
    return guests;
  }

  public void setGuests(int guests) {
    this.guests = guests;
  }


  public int getCar() {
    return car;
  }

  public void setCar(int car) {
    this.car = car;
  }


  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }


  public BigDecimal getMoeny() {
    return moeny;
  }

  public void setMoeny(BigDecimal moeny) {
    this.moeny = moeny;
  }


  public int getStaff() {
    return staff;
  }

  public void setStaff(int staff) {
    this.staff = staff;
  }


  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }


  public int getCount() {
    return count;
  }

  public void setCount(int count) {
    this.count = count;
  }

}
